﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%: ViewData["Message"] %></h2>
    <p>
        <% Html.RenderAction("GetPresentazione", "Foto", new { n_foto = 10});   %>
    </p>
            
    <div id="lastNotice">
        <% List<MvcSite.Models.Notizia> lista = (List<MvcSite.Models.Notizia>)ViewData["LastNotice"];
           foreach (var item in lista)
           {
               %>
               <div id = "notiziaBreve">
                <h2><%= item.Titolo %></h2>
                <p><%= item.Testo %></p>
                <%: Html.ActionLink("Leggi...", "GetNotizia/"+ item.Id, "Notizie") %>
               </div>
               <%
           } 
           %>
    </div>
</asp:Content>
